package com.coolingme.hungry01;

/**
 * 使用静态代码块初始化实例对象
 *
 * @author wangyue
 * @date 2020/9/27 10:54
 */
public class HungryStaticSingleton {

    private static final HungryStaticSingleton HUNGRY_STATIC_SINGLETON;

    static {
        HUNGRY_STATIC_SINGLETON = new HungryStaticSingleton();
    }

    private HungryStaticSingleton() {

    }

    public static HungryStaticSingleton getInstance() {
        return HUNGRY_STATIC_SINGLETON;
    }


}
